package com.queen.testretrofitrxjava.http;

import com.queen.testretrofitrxjava.entity.HttpResult;
import com.queen.testretrofitrxjava.entity.MovieDetail;
import com.queen.testretrofitrxjava.entity.Subject;

import java.util.List;

import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by liukun on 16/3/5.
 */
public interface MovieService {

    @GET("top250")
    Observable<HttpResult<List<Subject>>> getTopMovie(@Query("start") int start, @Query("count") int count);

    @GET("top250")
    Observable<HttpResult> getTopMovieHttpResult(@Query("start") int start, @Query("count") int count);


    @GET("subject/{movieID}")
    Observable<MovieDetail> getMovieDetail(@Path("movieID") String movieId);
}
